package com.bafa.front.admin;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bafa.exceptions.ErrorException;
import com.bafa.services.SeasonServices;

public class CreateRoundServlet extends AdminServlet {

	@Override
	public void doAdminEvent(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, ErrorException {
		message = SeasonServices.createNextRound(new Integer(request.getParameter("seasonId")).intValue(),request.getParameter("name"),(request.getParameter("cupPlate").equals("cup")));
		url = "viewallseasons.bafa";
	}
}
